package com.twoGroup.boot.pojo;

/**
 * @ClassName
 * @Description TODO
 * @Author Xuyujie
 * @Date 2021/5/25 21:31
 * @Version 1.0
 **/
public class CustomException extends Exception {
    private String message;
    private Throwable throwable;

    public CustomException(String message) {
        this.message = message;
    }

    public CustomException(Throwable throwable) {
        this.throwable = throwable;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }
}
